/**
 * The base for Multichannel JavaScript
 * requires mc.base.js
 */
 
 ( function( $ ) {
 
	/** 
	** BEGIN
	** Store Selector 
	*/
	$("#cookies-loaded").val('false');
	MC.storeSelector.loadCookies();

	$(document).delegate( "a.find" , "click" , function() { 
		MC.storeSelector.requestedQuantity = $("#Quantity_" + $(this).attr("data-type-sku")).val();
		MC.storeSelector.getLatLong( function() {
			MC.utils._cookie.set( "MC" , MC.storeSelector.getValues() );
			MC.storeSelector.getStoreLocations();
		});
	});
	
	$(document).delegate( "#store-pagination ul li a.previous" , "click" , function() {
		MC.storeLocator.getPrevStoreLocations();
	});

	$(document).delegate( "#store-pagination ul li a.next" , "click" , function() {
		MC.storeLocator.getNextStoreLocations();
	});
	
	/* END */
 

 
 })( jQuery );